const useWait = async (time = 0) => {
    await new Promise(resolve => setTimeout(resolve, time));
}

export default useWait